![]() |
PAT also supports running verification from the Console which is always
favored by programmers. And running from batch files using Console is extremely
useful when you have to run a batch of examples which spares you from starting
at the monitor and clicking the mouse all the way. The main usage of command line is of the following format: PAT.Console.exe [module] [options]* inputFile
outputFile for example: PAT.Console.exe -csp -sp DiningPhilosopher.csp
result.txt . For [module] part, the paragraph below lists all the supported commands
corresponding to different modules: For [options] part, here is the list for all the choices: The UML related of command line usage is of the following two
formats:
PAT.Console.exe -uml inputFile outputFile The command firstly translates inputFile into a CSP# model and outputs
the CSP# model to outputFile.
PAT.Console.exe -uml inputFile1 inputFile2 outputFile The command firstly translates inputFile1 and inputFile2 into two CSP# models
respectively, say input1 and input2, then verifies whether input1 refines input2
in the trace semantics, i.e. the assertion "#assert input1 refines input2", and
outputs the result to outputFile.
Each line shall have the following format: -f inputFile
Please
use only -b or -d